<%@ Register TagPrefix="uc1" TagName="SearchDashboard" Src="Controls/SearchDashboard.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Controls/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Controls/Footer.ascx" %>
<%@ Page language="c#" Codebehind="Statistics.aspx.cs" AutoEventWireup="false" Inherits="Geekees.App.Cashbook.Web.Statistics" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
		<title>Statistics</title>
		<link href="style/css.css" rel="stylesheet" type="text/css">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<%=Geekees.App.Cashbook.Lib.Helper.FlashMessage.Message%>
			<uc1:Header id="hHeader" runat="server"></uc1:Header>
			<div class="title">Dashboard<div class="title-right"><a href="#charts" class="a-nav">Charts</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#bottom" class="a-nav">Go 
						to bottom</a></div>
			</div>
			<uc1:SearchDashboard id="sdSearchDashboard" runat="server"></uc1:SearchDashboard>
			<table>
				<tr>
					<td>
						<asp:Button id="btnSearch" runat="server" Text="Search"></asp:Button>
					</td>
				</tr>
			</table>
			<h3>Balance</h3>
			<table>
				<tr>
					<td>
						<b>Total Income:</b>
					</td>
					<td><asp:Literal ID="lTotalIncome" Runat="server"></asp:Literal></td>
				</tr>
				<tr>
					<td>
						<b>Total Outgoings:</b>
					</td>
					<td><asp:Literal ID="lTotalOutcome" Runat="server"></asp:Literal></td>
				</tr>
				<tr>
					<td>
						<b>Balance:</b>
					</td>
					<td><asp:Literal ID="lDifference" Runat="server"></asp:Literal></td>
				</tr>
			</table>
			<h3>Detail</h3>
			<table>
				<tr align="left">
					<th>
						Date</th>
					<th>
						Class</th>
					<th>
						Cate</th>
					<th>
						Amount</th>
					<th>
						Datail</th>
					<th>
						Type</th>
				</tr>
				<asp:Repeater id="rptCashItem" runat="server">
					<ItemTemplate>
						<tr>
							<td>
								<asp:Literal ID="lId" Runat="server" Visible="False"></asp:Literal>
								<asp:Literal ID="lDate" Runat="server"></asp:Literal></td>
							<td>
								<asp:Literal ID="lClassification" Runat="server"></asp:Literal></td>
							<td>
								<asp:Literal ID="lCategory" Runat="server"></asp:Literal></td>
							<td>
								<asp:Literal ID="lAmount" Runat="server"></asp:Literal></td>
							<td>
								<asp:Literal ID="lDetail" Runat="server"></asp:Literal></td>
							<td>
								<asp:Literal ID="lType" Runat="server"></asp:Literal></td>
							<td>
								<asp:LinkButton ID="lbEdit" Runat="server" CommandName="Edit"></asp:LinkButton></td>
							<td>
								<asp:LinkButton ID="lbDelete" Runat="server" CommandName="Delete">(X)</asp:LinkButton></td>
						</tr>
					</ItemTemplate>
				</asp:Repeater>
			</table>
			<a name="charts"></a>
			<div class="title">Classification Chart<div class="title-right"><a href="#top" class="a-nav">Back 
						to top</a></div>
			</div>
			<br />
			<asp:Image id="imgClassificationBarChart" runat="server"></asp:Image>
			<div class="title">Category Chart<div class="title-right"><a href="#top" class="a-nav">Back 
						to top</a></div>
			</div>
			<br />
			<!--<img src="http://chart.apis.google.com/chart?chs=300x200&amp;cht=bvg&amp;chco=cc0000,00aa00&amp;chd=t:1,2,3|4,5,100&amp;chxt=x,y&amp;chxl=0:|in,in|out|income|income|income|income|1:|0|50|100"
				border="0">&nbsp;-->
			<asp:Image id="imgCategoryBarChart" runat="server"></asp:Image>
			<div class="title">Pie Chart<div class="title-right"><a href="#top" class="a-nav">Back to 
						top</a></div>
			</div>
			<br />
			<asp:Image id="imgTypePieChart" runat="server"></asp:Image>
			<uc1:Footer id="fFooter" runat="server"></uc1:Footer>
		
		</form>
	</body>
</HTML>
